<template>
  <div>
    <h1>router-link组件，做页面跳转</h1>
    <div>
      <ul>
        <li><router-link to="/home/site">工作台</router-link></li>
        <li><router-link :to="{ path: '/home/site' }">工作台2</router-link></li>
        <li><router-link :to="{ name: 'site' }">工作台3</router-link></li>
        <li><router-link to="/home/site?a=1&b=2&c=3">工作台-带参数</router-link></li>
        <li><router-link :to="{ path: '/home/site', query: { title: 'hello', id: 124 } }">工作台2-带参数</router-link></li>
        <li><router-link :to="{ name: 'site', params: { title: 'hello', id: 125 } }">工作台3-带参数</router-link></li>
        <li><router-link tag="li" :to="`/home/site/123`">工作台3-动态路由带参数</router-link></li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DEMOKHGL',

  data() {
    return {

    };
  },

  mounted() {

  },

  methods: {

  },
};
</script>

<style lang="less" scoped></style>